package demo55;

import demo55.controller.UserController;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.stereotype.Component;

@Component
public class demo {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext context
                = new AnnotationConfigApplicationContext("demo55");
        UserController bean = context.getBean(UserController.class);
        bean.doLogin();


    }
}
